home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 07 - 1991 / 07.08 Aug 91 / Dots Source / cDotsPane.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-02  |  1002 b   |  32 lines  |  [TEXT/KAHL]

  1. /**************************************
  2.     cDotsPane.h
  3. ****************************************/
  4.  
  5. #define _H_cDotsPane
  6. #include <CPanorama.h>
  7. #include "dotsTypes.h"
  8.  
  9. struct cDotsPane : CPanorama {
  10.     
  11.         /* Initialization */
  12.     void        IDotsPane(CView *anEnclosure, CBureaucrat *aSupervisor,
  13.                             short aWidth, short aHeight,
  14.                             short aHEncl, short aVEncl,
  15.                             SizingOption aHSizing, SizingOption aVSizing);
  16.  
  17.         /* Overrides */
  18.     void        Draw(Rect *area);
  19.     void        DoClick(Point hitPt, short modifierKeys, long when);
  20.  
  21.         /* Additional */
  22.     void        drawCorner(int row, int col);
  23.     void        box2Rect(int row, int col, Rect *r);
  24.     void        dot2Rect(int row, int col, Rect *r);
  25.     void        dotCenter(int row, int col, Point *center);
  26.     void        line2Pt(tLineDir direction, int row, int col, Point *pt);
  27.     void        line2Rect(tLineDir direction, int row, int col, Rect *r);
  28.     Boolean        pt2Line(Point pt, tLineDir *direction, int *row, int *col);
  29.     void        invalLine(tLineDir direction, int row, int col);
  30.     void        invalBox(int row, int col);
  31. };
  32.